﻿@model DFYE.Web.Models.guestBook

@{
    ViewBag.Title = "Edit";
}

<h2>客户留言</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset class="guestbook">
        <legend>编辑 客户留言</legend>

        @Html.HiddenFor(model => model.ID)



        <div class="editor-label">
            内容
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.content, new { @class = "textarea" })
            @Html.ValidationMessageFor(model => model.content)
        </div>

        <div class="editor-label">
            留言时间
        </div>
        <div class="editor-field">
            @String.Format("{0:g}", Model.datetime)
        </div>

        <div class="editor-label">
            客户ip
        </div>
        <div class="editor-field">
            @Model.ip
        </div>

        <div class="editor-label">
            回复时间
        </div>

        <div class="editor-field">
            @String.Format("{0:g}", Model.replyDatetime ?? DateTime.Now)
        </div>

        <p>
            <input type="submit" value="保存" class="submitBtn"/>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("回列表", "Index")
</div>

